﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UClaimDemageItemCodeTongJiReport.aspx.cs" Inherits="IHISCETeim.Web.MachineSys.UserModel.UClaimDemageItemCodeTongJiReport" %>

<form id="pagerForm" method="post" action="UserModel/UClaimDemageItemCodeTongJiReport.aspx">
<input type="hidden" name="Year" value="<%=Year %>" />
<input type="hidden" name="Month" value="<%=Month %>" />
<input type="hidden" name="orderField" value="<%=orderField %>" />
<input type="hidden" name="orderDirection" value="<%=orderDirection %>" />
</form>
<form id="UClaimDemageItemCodeTongJiReportform1" runat="server" method="post" action="UserModel/UClaimDemageItemCodeTongJiReport.aspx" onsubmit="return navTabSearch(this);">
<div class="pageHeader">
    <div class="searchBar">
        
        <table class="searchContent">
            <tr>
                <td>
                    请选择发货(索赔)月份:
                </td>
                <td>                   
                    <select name="Year" class="combox" onchange="return navTabSearch(UClaimDemageItemCodeTongJiReportform1)">
                        <%=GetYearList()%>
                    </select>
                   <select name="Month" class="combox" onchange="return navTabSearch(UClaimDemageItemCodeTongJiReportform1)">
                        <option value="1" <%=Month==1?"selected":"" %>>1月</option>
                        <option value="2" <%=Month==2?"selected":"" %>>2月</option>
                         <option value="3" <%=Month==3?"selected":"" %>>3月</option>
                         <option value="4" <%=Month==4?"selected":"" %>>4月</option>
                         <option value="5" <%=Month==5?"selected":"" %>>5月</option>
                        <option value="6" <%=Month==6?"selected":"" %>>6月</option>
                         <option value="7" <%=Month==7?"selected":"" %>>7月</option>
                         <option value="8" <%=Month==8?"selected":"" %>>8月</option>
                         <option value="9" <%=Month==9?"selected":"" %>>9月</option>
                        <option value="10" <%=Month==10?"selected":"" %>>10月</option>
                         <option value="11" <%=Month==11?"selected":"" %>>11月</option>
                         <option value="12" <%=Month==12?"selected":"" %>>12月</option>                        
                   </select>
                </td>
                <td>
                    <div class="subBar">
            <ul>
                
                <li>
                    <div class="buttonActive"><div class="buttonContent" ><a target="_blank" style=" line-height:25px!important;" href="UserModel/ExportExecl/ExportExeclUClaimDemageItemCodeTongJiReport.aspx?Year=<%=Year %>&Month=<%=Month %>">导出</a></div></div>
                </li>
            </ul>
        </div>
                </td>
            </tr>
        </table>
    </div>
</div>
<div class="pageContent">
   
    <asp:repeater id="rpMenu" runat="server">
        <HeaderTemplate>
        <table class="table" width="100%" layouth="85">
        <thead>
            <tr>
                <th width="100" >
                    物料名称
                </th>
                <th  width="100">
                    物料代码
                </th>    
                 <th align="center" width="60" >
                    数量
                </th>            
                <th width="60">
                    总金额
                </th> 
                <th>相关品情单</th>                      
            </tr>
        </thead>
        <tbody>
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
                <td>
                    <%# Eval("Dscription")%>
                </td>
                <td><%# Eval("ItemCode")%></td>
				<td><%# Eval("Quantity")%></td>                
				<td><%# Eval("LineTotal")%></td>
                <td><%# GetViewUClaimDemageControl(Eval("ClaimsNumbers"))%></td>
			</tr>
        </ItemTemplate>
        <FooterTemplate>
            <tr>
                <td  width="100">&nbsp;</td>
                <td width="100" align="right" ><b>合计:</b></td>
                <td  align="center" width="60"><b style="color:red;"><%=Convert.ToDecimal(SUMDT.Rows[0]["Quantity"]).ToString("F2")%></b></td>
                <td width="60"><b style="color:red;"><%=Convert.ToDecimal(SUMDT.Rows[0]["LineTotal"]).ToString("F2")%></b></td>
                <td>&nbsp;</td>
            </tr>
            </tbody>
            
         </table>
        </FooterTemplate>
    </asp:repeater>
  
</div>
</form>
